import { ApiProperty } from "@nestjs/swagger";
import { IsNotEmpty } from "class-validator";

export class UpdateApiDto {
  @ApiProperty({ description: "接口名称", example: "用户列表接口" })
  @IsNotEmpty()
  apiName: string;
  
  @ApiProperty({ description: "接口Url", example: "/user/list" })
  @IsNotEmpty()
  apiUrl: string;
  
  @ApiProperty({ description: "请求方式", example: "GET" })
  @IsNotEmpty()
  method: string;
  
  @ApiProperty({ description: "菜单ID", example: 2 })
  @IsNotEmpty()
  menuId: number;
}
